package com.zhx.learn.jiguang.config;

import com.zhx.learn.jiguang.config.BaseConfig;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * describe: 极光推送的Demo
 *
 * @author zhanghaixuan
 * @date 2018/09/09
 **/
@Data
@Configuration
@ConditionalOnProperty(prefix="push.jpush",name = "enable", havingValue = "true")
@ConfigurationProperties(prefix = "push.jpush")
public class JPushPropertiesConfig extends BaseConfig {
    /**
     * 激光推送申请对应项目的key 下为正式
     */
    private String appKey;
    /**
     * 激光推送账号密码,经过MD5的 下为正式
     */
    private String masterSecret;
    /**
     * IOS的推送域 .
     */
    private String iosProduct;
}
